package 双向链表;

public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(34);
        myLinkedList.addFirst(5);
        myLinkedList.addFirst(98);
        myLinkedList.addLast(54);
        myLinkedList.addLast(1);
        myLinkedList.addLast(122);
        myLinkedList.display();
        myLinkedList.addIndex(3,888);
        myLinkedList.display();
    }
}
